package org.lx.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.lx.nursing.domain.CheckIn;
import org.lx.nursing.vo.CheckInElderVo;
import org.lx.nursing.vo.ElderFamilyVo;

import java.util.List;

/**
 * 入住Mapper接口
 *
 * @author lx
 * @date 2025-02-28
 */
@Mapper
public interface CheckInMapper extends BaseMapper<CheckIn> {
    CheckIn selectCheckInById(Long id);

    List<CheckIn> selectCheckInList(CheckIn checkIn);

    int insertCheckIn(CheckIn checkIn);

    int updateCheckIn(CheckIn checkIn);

    int deleteCheckInById(Long id);

    int deleteCheckInByIds(Long[] ids);

    CheckInElderVo selectCheckInByBedNumber(String bedNumber);

    List<ElderFamilyVo> elderFamilyVoList(Long elderId);
}
